<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="java.util.Collection"%>
<%@page import="java.util.ArrayList"%>
<%@page import="modelo.Local"%>

<%
	Collection<Local> locales = (Collection<Local>) request.getAttribute("locales");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Lista de Locales</title>
</head>
<body>
	<center>
		<h1>
			<strong>Lista de Locales</strong>
		</h1>
	</center>
	<hr>
	<c:if test="${locales.size() > 0}">
		<ul>
			<c:forEach items="${locales}" var="local">
				<li><a href="CanchasLocalServlet?idLocal=${local.getIdLocal()}&nombre=${local.getNombre()}"><c:out value="${local.getNombre()}"/></a></li>
			</c:forEach>
		</ul>
	</c:if>
	<hr>
	</center>
</body>
</html>